package exercise;

import java.util.Scanner;

public class EX03_Q24 {

	public static void main(String[] args) {
		// #24
		Scanner sc = new Scanner(System.in);

		System.out.print("출력하고 싶은 단을 입력하세요 : ");
		int dan = sc.nextInt();

		if (dan < 10 && dan > 0) {
			int r;

			System.out.println(dan + "단");
			System.out.println("---------------");

			for (int j = 1; j < 10; j++) {
				r = dan * j;
				System.out.println(dan + " X " + j + " = " + r);
			}
		} else {
			System.out.println("잘못 입력하셨습니다.");
		}

	}
	

}
